package com.xyh.transaction.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xyh.transaction.common.Constant;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.Set;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class RoleVo {

    private Integer id;

    private String roleName;

    private String roleStr;

    private Integer status;

    @JsonFormat(pattern = Constant.DATE_FORMAT_DEFAULT)
    private LocalDateTime createTime;

    @JsonFormat(pattern = Constant.DATE_FORMAT_DEFAULT)
    private LocalDateTime updateTime;

    Set<Integer> routes;

    Set<Integer> permissions;

}
